package com.lujianfei.netease_android_shareelement

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.lujianfei.netease_android_shareelement.ui.ShareElementActivity
import com.lujianfei.netease_android_shareelement.ui.ShareElementContainerActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        bt_activity.setOnClickListener {
            startActivity(Intent(this@MainActivity, ShareElementActivity::class.java))
        }
        bt_fragment.setOnClickListener {
            startActivity(Intent(this@MainActivity, ShareElementContainerActivity::class.java))
        }
    }
}
